import http from '@/api'

const baseUrl = `${import.meta.env.VITE_APP_API_BASE_URL}`

// 观看图片
const getImagePreview = <T = any>(params: ApiFile.FileUrlReq, obj = { responseType: 'blob' }) => {
  return http.get<T>(`${baseUrl}/oss`, params, obj)
}

export default {
  getImagePreview
}
